package model.repository;

import java.util.List;

import model.bll.SeansBLL;
import model.entity.Seans;

public class SeansRES {

	private final SeansBLL seansBLL;
	
	public SeansRES() {
		this.seansBLL = new SeansBLL();
	}
	
	public boolean insert(Seans entity) {
		return seansBLL.insertEntity(entity);
	}

	public boolean update(Seans entity) {
		return seansBLL.updateEntity(entity);
	}

	public boolean delete(Seans entity) {
		return seansBLL.deleteEntity(entity);
	}

	public List<Seans> getAll() {
		return seansBLL.getAllEntity();
	}

	public Seans findById(long id) {
		return seansBLL.findEntityById(id);
	}
}
